<?php
  $search=array('Украина');
  $ln='ru';

	$ans=file_get_contents(
		'http://maps.googleapis.com/maps/api/geocode/json?address='.urlencode(implode(',',$search)).'&sensor=false'
	);
	//echo $ans;
	
	$coord=json_decode( $ans, 1 );

  echo '<pre class="debug">'.print_r ( $coord ,true).'</pre>';
?>
